$migdir = "Migrations"
if (Test-Path $migdir) 
{
  Remove-Item -Recurse -Force $migdir
}

$curdb = "data.db"
if (Test-Path $curdb) 
{
  Remove-Item $curdb
}

$bindb = "bin\Debug\net5.0-windows\data.db"
if (Test-Path $bindb) 
{
  Remove-Item $bindb
}



dotnet ef migrations add Init

dotnet ef database update

move-item $curdb $bindb 